﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DevExpress.Xpo;

namespace WROA.Models.Entitys
{
    public class FlowType : XPObject
    {
        private string ft_name;
        [DbType("nvarchar(50)")]
        public string Ft_name { get; set; }

        private string ft_html;
        [DbType("ntext")]
        public string Ft_html
        {
            get { return ft_html; }
            set { ft_html = value; }
        }

        [Association("FlowFlowType", typeof(Flow))]
        public XPCollection flows
        {
            get
            {
                return GetCollection("flows");
            }
        }

        [Association("FlowTypeForm", typeof(FormData))]
        public XPCollection forms
        {
            get
            {
                return GetCollection("forms");
            }
        }
    }
}